﻿
@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model  IEnumerable<YTCMS.Domain.Entities.orderinfo>
<div class="page-header">
    <a href="/order/index">订单管理</a>
    <small>
        <i class="icon-double-angle-right"></i>
        订单详情
    </small>
</div><!-- /.page-header -->

<div class="row">
    <div class="col-xs-12">
       
        <div class="row">
            <div class="col-xs-12">
                <div class="table-header">

                </div>
                <div class="table-responsive" id="showData">
                    <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th class="center">
                                    <label>
                                        <input type="checkbox" class="ace" />
                                        <span class="lbl"></span>
                                    </label>
                                </th>
                                <th>订单号</th>
                                <th>商品名称</th>
                                <th>订购数量</th>
                                <th>商品单价</th>
                                <th>总价</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @{
                                if (Model.Any())
                                {
                                    foreach (var item in Model)
                                    {
                                        <tr>
                                            <td class="center">
                                                <label>
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>
                                            </td>

                                            <td>@item.Code</td>
                                            <td>@item.products.Name</td>
                                            <td>@item.quantity</td>
                                            <td>@item.products.Price</td>
                                            <td>@(item.quantity * item.products.Price )</td>
                                            <td>
                                                <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                    <a class="btn btn-xs btn-danger" href="javascript:void(0)" onclick="WZTDelete('/Order/Delete', {id:@item.Id})">
                                                        <i class="icon-trash bigger-120"></i>删除
                                                    </a>
                                                </div>
                                            </td>
                                        </tr>
                                    }
                                }

                            }
                        </tbody>
                    </table>
                </div><!-- /.table-responsive -->
            </div><!-- /span -->
        </div><!-- /row -->
    </div><!-- /.col -->
</div><!-- /.row -->